package xkp.lesson.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import xkp.lesson.Result;

@Controller
@RequestMapping("/inter")
public class InterctorController {
    @ResponseBody
    @GetMapping("/interctor1")
    public Result interctor1(){
        System.out.println("interctor1");
        Result result = new Result();
        result.setMsg("inter");
        return result;
    }
}
